<template>
    <div>
        <h2>{{ num.a}}</h2>
    </div>
</template>

<script setup lang="ts">
//recative 实现对象类型的响应
import {ref,reactive} from 'vue' 

let num:any =reactive({
    a:100
})

</script>

<style scoped>

</style>